#pragma once

#include <map>
#include <string>

class NetConfig
{
public:
    bool Open(const char* filename);

    const char* GetString(const char* section, const char* key, const char* defaultValue="") const;

    int GetInt(const char* section, const char* key, int defaultValue=0) const;

private:
    std::map<std::string, std::string> parameters_;
};
